package com.canal.display.transfer.req;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author yangbo
 * @date 2020-07-31 10:18
 */
@Getter
@Setter
public class RestPwdReq {

    @NotNull(message = "原密码不能为空")
    private String oldPwd;

    @NotNull(message = "新密码不能为空")
    @Pattern(regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$",message = "密码为6-16位的数字字母组合，请重新输入")
    private String newPwd;
}
